package com.my.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.my.entity.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionMapper extends BaseMapper<Question> {

    List<Question> getPage(@Param("s") long s, @Param("e") long e, @Param("q") Question q);

    long getCount(@Param("q") Question q);

    List<Question> getBySubjectId(Long subjectId);

}
